package de.greenrobot.gulidao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

/**
 * Created by john on 2015/12/9.
 */
public class DevOpenHelper extends OpenHelper {
    public DevOpenHelper(Context context, String str, SQLiteDatabase.CursorFactory cursorFactory) {
        super(context, str, cursorFactory);
    }

    public void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
        Log.i("greenDAO", "onDowngrade, from version: " + i + " to " + i2);
        LuaListDaoHelper.onDowngrade(sQLiteDatabase, i, i2);
    }

    public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
        Log.i("greenDAO", "Upgrading schema from version " + i + " to " + i2 + " by dropping all tables");
        LuaListDaoHelper.onUpgrade(sQLiteDatabase, i, i2);
    }
}